Amber's Digital Garden

Add a script to $PATH

Simple way to add a script to your $PATH


Recommend using a symlink, with the actual script stored in /home/amber/scripts.

  1. Create the script in /home/amber/scripts
  2. Make sure to chmod +x <script_name>
  3. cd /usr/local/bin
  4. Make the symlink sudo ln -nsf /home/amber/scripts/<script_name>
  5. You might need to log out then back in.

If you want to remove the script from $PATH, just delete the symlink.


by amber